package com.undsf.chaldea.web.controllers

import org.springframework.web.bind.annotation.RestController
import org.springframework.web.bind.annotation.RequestParam
import org.springframework.web.bind.annotation.RequestMapping



/**
 * Created by Arathi on 2017/8/21.
 */
@RestController
class ServantController {

    //@RequestMapping("/servant/{id}")
    //fun servant(@RequestParam(value = "id", defaultValue = "1") id: String): Servant {
    //    val digitalId : Int = id.toInt()
    //    val servant : Servant = Servant()
    //    servant.id = digitalId
    //    servant.name = "玛修·基列莱特"
    //    return servant
    //}
//
    //@RequestMapping("/search/servant")
    //fun serach(): List<Servant> {
    //    val servants : MutableList<Servant> = mutableListOf<Servant>()
//
    //    val servant : Servant = Servant()
    //    servant.id = 1
    //    servant.name = "玛修·基列莱特"
    //    servants.add(servant)
//
    //    return servants
    //}
}
